package com.xuecheng.search.api;

import com.xuecheng.commons.model.vo.CoursePubIndexVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("xc-search-service")
public interface SearchClient {
    //根据id查询课程发布数据
    @GetMapping("/course-search/{id}")
    public ResponseResult<CoursePubIndexVo> findById(@PathVariable("id") Long id);
}
